<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/index.jsp"%>
<%
	request.setAttribute("modelConfigPath", "superbase");
%>

<%
	String contextPath = request.getContextPath();
	String path = request.getScheme() + "://" + request.getServerName()
			+ ":" + request.getServerPort() + contextPath;

	String csspath = path + "/assets/css/";
%>



<link rel="stylesheet" type="text/css" href="<%=csspath%>main.css">



<!-- Wrapper -->
<div id="main">
	<section class="main">
		<div style="display: inline-block;">
			<header class="major">
				<h2 style="float: left;">${employee.employeeName}的个人中心</h2>

			</header>
		</div>

		<div id="div_user_main">

			<table class="cntable table table-bordered dataTable table-employee">
				<p>姓名 ：${employee.employeeName}</p>
				<p>账号 ：${employee.employeeAccount}</p>
				<p>性别 ：<t:provider packageName="default" enumClassName="SexStatus" value="${employee.sex }"/></p>
					
				
				<p>手机 ：${employee.mobile}</p>
				<p>邮箱 ：${employee.email}</p>
				<p>签名 ：${employee.userMark}</p>
			</table>
			<div>
				<button class="button special small " onclick="user_edit();">编辑信息</button>
				<a href="${t_virtualpath}/admin/mainnew" class="button special small">返回</a>
				<!--  <button class="button speciall small" onclick="password_edit();">修改密码</button>    -->
			</div>
		</div>



		<!--编辑用户信息-->
		<div id="div_user_edit" style="display: none;">
			<t:panel cssClass="panel-flat form-detailed " customBody="true" customHead="true">
				<div class="detailed-navbar-content panel-body">
				<t:form commandName="employee" id="first"
					action="/admin/user/personal/save" method="post"
					cssClass="form-horizontal">
					<div class="hide">
						<t:hidden path="employeeId" />
						<t:hidden path="deleteMark" />
						<t:hidden path="isLocked" />
						<t:hidden path="isLogin" />
						<t:hidden path="employeeAccount" />
						<t:hidden path="employeePass" />
						<t:hidden path="businessId" />
						<t:hidden path="theme" />
					</div>
					<t:formgroup>
						<t:input path="employeeName" colClass="col-sm-4" />
					</t:formgroup>
					<t:formgroup>
						<t:input path="mobile" colClass="col-sm-4" />
						<t:input path="email" colClass="col-sm-4" />
					</t:formgroup>
					<t:formgroup>
						<t:selectButton path="sex" colClass="col-sm-4" />
					</t:formgroup>
					<t:formgroup>
						<t:textarea path="userMark" rows="6" colClass="col-sm-10" />
					</t:formgroup>
					<div style="padding-top: 10px;">
						<input type="submit" class="button small" onclick="user_edit();"
							value="保存"> <input type="cancel" class="button small"
							onclick="user_cancel();" value="取消">
					</div>
				</t:form>
				</div>
				</t:panel>
		

		<!--   <div id="div_password_edit" style="display: none;" >
                 
                 <t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="updatePwd" id="second" action="/admin/user/personal/updatePwd" method="post" cssClass="form-horizontal">
			<t:formgroup>
				<t:label path="oldPwd" cssClass="col-xs-2" />
				<t:input type="password" path="oldPwd" colClass="col-xs-10" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="newPwd" cssClass="col-xs-2" />
				<t:input type="password" path="newPwd" colClass="col-xs-10" />
			</t:formgroup>
			<t:formgroup>
				<t:label path="confirmPwd" cssClass="col-xs-2" />
				<t:input type="password" path="confirmPwd" colClass="col-xs-10" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="savePass()" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>
                 </div> -->


	</section>
</div>




<script type="text/javascript">
	var div2 = document.getElementById("div_user_main");
	var div3 = document.getElementById("div_user_edit");
	var div4 = document.getElementById("div_password_edit");

	function user_edit() {
		div2.style.display = "none";
		div3.style.display = "block";
	}

	function password_edit() {
		div2.style.display = "none";
		div4.style.display = "block";
	}

	function user_save() {
		div2.style.display = "block";
		div3.style.display = "none";
		//var form_1=document.getElementById("form_intro_edit");
		//form_1.submit();
		$("#").submit();
	}

	function user_cancel() {
		div2.style.display = "block";
		div3.style.display = "none";
		$("#").cancel();
	}
	function updatePwd() {
		window.openModal("/admin/superbase/employee/updatePwd",
				"employee_form", "修改密码", 0.9 * screen.width, 295);
	}

	/*     function saveData(){
	 alert("11111111111111111111111111");
	
	 $("#first").submit();
	 }	
	 function savePass(){
	
	 $("#second").submit();
	 }	
	 */
	function actionResultCallBack() {
		var baseOperate = {
			close : true,
			refresh : false
		}
		window.location.reload();
		return baseOperate;
	}
</script>




<%@ include file="/WEB-INF/views/shared/master/cntable.jsp"%>

<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared//master/contentFooter.jsp"%>
